import qtile
from qtile import layout, bar, widget

# 定义布局
layouts = [
    layout.Stack(num_stacks=2),
    layout.Columns(num_columns=2),
]

# 定义顶部栏
top_bar = bar.Bar([
    widget.GroupBox(),
    widget.Prompt(),
    widget.WindowName(),
], 24)

# 定义底部栏
bottom_bar = bar.Bar([
    widget.Systray(),
    widget.Clock(format='%Y-%m-%d %a %I:%M %p'),
], 24)

# 定义屏幕
screens = [
    dict(
        top=top_bar,
        bottom=bottom_bar,
        wallpaper='~/.wallpaper',
    ),
]

# 启动 Qtile
qtile.Config(screens=screens, layouts=layouts).run()
